package business.other.impl;

import business.other.FireSafetyAccidentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.FireSafetyAccident;
import other.domain.FireSafetyAccidentCriteria;
import other.mapper.FireSafetyAccidentMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "fireAccidentsService")
public class FireSafetyAccidentServiceImpl implements FireSafetyAccidentService {

    @Autowired
    FireSafetyAccidentMapper fireSafetyAccidentMapper;


    @Override
    public List<FireSafetyAccident> getFireSafetyAccident() {
        FireSafetyAccidentCriteria criteria =new FireSafetyAccidentCriteria();
        criteria.createCriteria().getAllCriteria();
        return fireSafetyAccidentMapper.selectByExample(criteria);
    }
}
